IB Comp Sci 2010 - Daily Notes SL Year 1

Fri 19 June 2009

Summer Assignments
  • PowerPoint Prototype - due first day of school Wed 19 Aug
  • Practice programming - so you don't forget what you learned
    You DON'T need to start programming your project yet - plenty of time later
  • Watch Old School Videos - on the CD you got in class

Fri 5 June 09

**Internal Assessment Dossier Project**

Final Exam Review

Click here to see the final exam review notes

Mon 18 May 09

Sorting and Searching in a Table

Friday 15 May 09

NetBeans Database #3 - An even better Student Planner

Wednesday 13 May 09

NetBeans Practice #2 - More with Student Planner

Tuesday 12 May 09

NetBeans practice project - Student Planner

Thursday 7 May 09

NetBeans FAQ (a few hints)

Wednesday 6 May 09

Standard Algorithms Practice
Test : Monday 11 May

Tuesday 5 May 09

Homework : Install NetBeans at home and try it out.
Keep the CD. You will need to copy all the files
onto a hard-disk to make it work correctly.

Monday 4 May 09

Here a solution program for the first sorting worksheet.
It contains a SimpleSort instead of a SelectionSort.

Thursday 30 Apr 09

First try with Sorting

Wednesday 29 Apr 09

Answers for AWTpractice1, including TicTacToe buttons.
Homework : Find out the difference between "Bubble Sort" and "Selection Sort".

Tuesday 28 Apr 09

More AWTpractice

Friday 24 Apr 09

AWT Controls
AWTpractice.java Our Java Notes

Mon 20 Apr 09

Redesign - Improving the prototype to improve usability and functionality.

Tue 17 Mar 09

**Student Tracking Project**

Wed 11 Mar 09

Turn in your Dates program by copying the entire folder into your folder on the web329 server.
Student Checkout Program - WRITING and READING text files

Mon 2 Mar 09 - Mon 9 Mar 09

Dates Mini-Project - due Wednesday 11 March (beginning of class)

Fri 27 Feb 09

Look at this sample program : http://ibcomp.fis.edu/CIAfactbook/WordFinder.html
Add another TWO more FIND methods:
  • finding 3 words, where ALL of them occur in one line in the text file
  • finding 3 words, where ANY (1 or more) occur in the one line in the text file
Hints :
  • ALL words = means you must use AND logic (&&)
  • ANY word = means you must use OR logic (||)
  • Somehow the two methods need DIFFERENT parameter lists.
    They cannot both accept the filename and 3 words, because POLYMORPHISM only allows you to use the same method name if the PARAMETER LISTS are different.
In case you need the text files, here they are:
a b c d ... they are all in the zip archive.

Wed 25 Feb 09

Look at the CIA Factbook (at www.cia.gov)
Change one of the countries into a text-file (or download their text version)
Homework: Write a program that can search through the file for a specific piece of data and print it - for example, searching for Population - then print the corresponding number.
Quiz Friday using the program you wrote.

Mon 23 Feb 09

Text Files
Try these examples (at the end) : Data Storage and Text Files

Thu 12 Feb 09

Some vacation "reading" :
Not Quite Paperless Yet
The Amish - Resisting Technology
The Future (and history) of Science

Wed 11 Feb 09

**Data Storage and Text Files**

Tue 10 Feb 09

  1. Turn in your Bomb-Seeker Program
  2. Spend the rest of the period **investigating and reading** about and the "Paperless Office"

Mon 2 Feb 09

Bomb Seeker Assignment

Tue 27 Jan 09

**Kings - a Simple Board Game in a 2-D Array**
**Bomb Seeker - a Minesweeper Imitation**

Mon 26 Jan 09

**Parallel Arrays**

Thu 15 Jan 09

**More practice** with array algorithms.

Tue 13 Jan 09

Practice with **array algorithms.**

Fri 9 Jan 09

More simple algorithms - programming in class
Homework reading - **Algorithm Notes**

Thu 8 Jan 09

**Packing Algorithms** - More practice with array algorithms in the packing problem.
Homework : write a program to find the largest number in an array

Wed 7 Jan 09

**Automation**

Mon 5 Jan 09

Simulations - **Loading.java**

Wed 10 Dec 08

[[games/DiceGames/index.html|Dice Games with OOP]]

Mon 8 Dec 08

**CardGames with OOP**

Wed 3 Dec 08

Object Oriented Programming
Examples: Personal Notebook Program Adder - OOP demo BiggestPrime
Reading: http://math.hws.edu/javanotes/c5/index.html

Tue 2 Dec 08

OS Test

Thu 27 Nov 08

Be sure to read Mr Mulkey's notes about Operating Systems - **Operating Systems - Past, Present, Future**
Use these practice questions to review/practice for the TEST on Tuesday 2 Dec. It's recommended that you study with other student(s) and compare your answers. You may also ask questions in class and get the teacher's opinion. Notice that the [number] in brackets after each question tells how many MARKS it will be given, and that is roughly equivalent to the number of significant ideas/concepts that your answer should contain. So a [2] mark question would not require you to write an entire page for an answer. In IB exams, you have about 1.5 minutes per mark to answer the questions - e.g. a 50 minute test would probably have 30-35 marks.
We will start programming again next Wednesday.

Wed 26 Nov 08

**Operating Systems - Past, Present, Future**
Prepare for a TEST on Tuesday 2 Dec.
The test will cover all the reading and lectures
from the past couple weeks - input/output devices,
operating systems, etc. No programming on the test.

Mon 24 Nov 08

Operating Systems and Platforms
HW : Read this article : http://computer.howstuffworks.com/operating-system.htm/printable
5-minute quiz next class

Wed 19 Nov 08

Read pages 155-157 in Chapter 3
Find out how printers work.

Specifically, how does a laser-printer control where the text appears on the page?
How does it put the toner (powder) in the right place on the drum,
and how does the toner end up on the paper?
You might try reading about laser printers at www.howstuffworks.com

Tue 18 Nov 08

Read pages 151-154 in Chapter 3
Quiz tomorrow (5 minutes)

Thu 13 Nov 08

Read pages 140-144 in Chapter 3

Wed 12 Nov 08

System Fundamentals Overview

Thu 6 Nov 08

Airline Seating in Arrays

Mon 3 Nov 08

Practice programming arrays

Thu 30 Oct 08

Arrays = Lists

Mon 27 Oct 08

Loops Practice

Fri 24 Oct 08

Homework: Read lesson 11 in Blue Pelican Java - "The For...Loop"
Memorize: 1, 2 , 4 , 8 , 16 , 32 , 64 , 128 , 256 , 512 , 1024

Tue 21 Oct 08

1. Turn in your Jeopardy program by PRINTING IT ON PAPER and giving the paper to the teacher.
2. The class will discuss these practice problems.
Daily Quick Quiz
Beginning Wed 22 Oct, each class will begin with a 5-10 minute written quiz. These will always be written on paper - they will not involve using the computer. Why? At the end of the IB course, you will have 2 written exams, about 90 minutes each. You will need to write clear, concise, correct answers quickly on paper. That includes writing Java program code. Practice makes perfect (or at least better)! ( If you arrive late to class, you will have less time to write your answers.)

Mon 20 Oct 08

Bring a working program on Tuesday, 21 Oct to be graded.

Mon 13 Oct 08

This week we will work on the Jeopardy program.
Mr Mulkey will be absent Wed-Fri. If you get stuck and need help, you should talk to another student, or send an e-mail to : Dave_Mulkey@fis.edu . You won't get an immediate answer, but certainly within a couple hours.
Follow the instructions in the assignment. Bring a working program on Monday, 20 Oct to be graded. You may share ideas with other students, but don't copy code directly.

Tue 16 Sep 08

Math Helper - a complex math calculator

Dr Java

DrJava is a standard Java IDE. We will start using this now, as Processing is a bit non-standard, making it difficult to work with standard Java sample programs. Start DrJava from your class CD, or from the short-cuts on our 329 desktops.
You can download DrJava here: http://ibcomp.fis.edu/drjava.exe
or here: http://www.drjava.org (get the Windows Executable file)

Mon 1 Sep 08

Inputting Numbers
Read these notes and do the programming practice at the end

Tue 26 Aug 08

Reminder : Quiz Friday 29 Aug 08
Homework: Read about Inputting Numbers

Mon 25 Aug 08

Reminder : Quiz Friday 29 Aug 08
Read : chapter 4 in Blue Pelican Java.
Do the questions at the end of the chapter by:
- reading the question
- trying to guess the answer
- checking the answer by running the code in a Java editor (Processing)
The teacher will answer questions tomorrow in class.

Here are the teacher's answers (no guarantees):
(1) 109, 104 (2) j++; or j=j+1; or j+=1; (3) 1992.37
(4) System.out.println(zulu--); (5) 3 (6) v -= (p-30);
(7) v = v - (p-30) (8) -22 (9) 2 , 5 (10) 3=g causes an error
(11) double m = 3.14 , b = 3.14 , f = 3.14 ; (12) int x,y,z;
(13) 7 (14) 21 (15) a command that changes the value of a variable
(16) k = i%j; (17) 4 ?? (18) j--; or j = j-1; or j -= 1;

x = x++ ; is a very silly statement, that doesn't do what we expect.
So don't use it! Write x = x + 1; or x++;